package org.gw.building.repositories;

import org.gw.building.model.MessageReadState;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface MessageReadStateRepository extends JpaRepository<MessageReadState, String> {
	@Query("select t.message.id ,t.status from MessageReadState t where t.message.id in ?1 and t.yhId=?2")
	List<Object[]> findMessageIdAndStatusByMessageIdInAndYhId(List<String> asList, String uid);

}
